package Page.BiggerDetailPage;

import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;

public class BiggerDetailPageViewModel {
    private final StringProperty ATitle = new SimpleStringProperty();
    private final StringProperty ATime = new SimpleStringProperty();
    private final StringProperty AContent = new SimpleStringProperty();

    private static final BiggerDetailPageViewModel viewModel = new BiggerDetailPageViewModel();

    public StringProperty getATitleProperty(){
        return ATitle;
    }

    public StringProperty getATimeProperty(){
        return ATime;
    }

    public StringProperty getAContentProperty(){
        return AContent;
    }

    public void setATitle(String ATitle){
        this.ATitle.set(ATitle);
    }

    public void setATime(String ATime){
        this.ATime.set(ATime);
    }

    public void setAContent(String AContent){
        this.AContent.set(AContent);
    }

    // 获取实例
    public static BiggerDetailPageViewModel getViewModel(){
        return viewModel;
    }
}